package com.wontube.smr.dao.mapper.web;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.session.RowBounds;

import com.wontube.core.dao.mybatis.QueryExample;
import com.wontube.smr.dao.providers.BlogSqlProvider;
import com.wontube.smr.web.client.model.po.BlogCategory;

public interface BlogCategoryMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table blog_category
     *
     * @mbggenerated
     */
    int countByExample(QueryExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table blog_category
     *
     * @mbggenerated
     */
    int deleteByExample(QueryExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table blog_category
     *
     * @mbggenerated
     */
    int deleteByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table blog_category
     *
     * @mbggenerated
     */
    int insert(BlogCategory record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table blog_category
     *
     * @mbggenerated
     */
    int insertSelective(BlogCategory record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table blog_category
     *
     * @mbggenerated
     */
    List<BlogCategory> selectByExample(QueryExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table blog_category
     *
     * @mbggenerated
     */
    List<BlogCategory> selectByExample(QueryExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table blog_category
     *
     * @mbggenerated
     */
    BlogCategory selectByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table blog_category
     *
     * @mbggenerated
     */
    int updateByExampleSelective(@Param("record") BlogCategory record, @Param("example") QueryExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table blog_category
     *
     * @mbggenerated
     */
    int updateByExample(@Param("record") BlogCategory record, @Param("example") QueryExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table blog_category
     *
     * @mbggenerated
     */
    int updateByPrimaryKeySelective(BlogCategory record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table blog_category
     *
     * @mbggenerated
     */
    int updateByPrimaryKey(BlogCategory record);
    
	@SelectProvider(type = BlogSqlProvider.class, method = "listAllCatAndCount")
	@ResultMap("BaseResultMap")
	List<BlogCategory> listAllCatAndCount(QueryExample example);
}